home *** CD-ROM | disk | FTP | other *** search
/ SuperHack / SuperHack CD.bin / SCRIPTZ / AUTOGET.ZIP / autoget.txt
Text File  |  1997-03-02  |  2KB  |  46 lines

  1. Auto Wav/Mid Getter v1.1
  2. ---------------------
  3. One of the more common things I'm asked about scripting is how to make
  4. a script automatically get a sound when it's played. Well, here ya go,
  5. so STOP ASKING!!! =) There's more to this than just that tho, so take
  6. a look and let me know whatcha think.
  7.  
  8. How This Works: What this will do, is whenever somebody plays a sound
  9. in the channel, it will ask them for the sound. IE: Say, for instance,
  10. I played a sound in the channel and you were running this script. When
  11. I play the sound, you will automatically say:
  12.  
  13. <yournick> !unsane sound.wav   AutoGet by unsane!
  14.  
  15. Or whoever played the sound. 
  16.  
  17.  
  18. Required: mIRC 4.52+
  19. Optional: .Wav / .Mid files to play
  20. Fixes: Changed it so that it actually shows the filename =)
  21. Copyright: 1997 unsane and AiLe Productions. All rights reserved.
  22. SHOUT! outs: ^|eXE|^, aLiEn1
  23. Contacting unsane: DALNet (irc.dal.net) in #mirc_scripts
  24.  
  25. [Remote/Commands]
  26. #autosoundget enabled
  27. 1:SOUND:/msg $chan ! $+ $nick $nopath($parm2)   AutoGet by unsane!
  28. #autosoundget end
  29.  
  30. [Remote/Events]
  31. 1:ON FILERCVD:*.mid: { inc %midi.total 1 }
  32. 1:ON FILERCVD:*.wav: { inc %wav.total 1 }
  33.  
  34. [Popups/Channel]
  35. unsane's addons
  36. .Sound AutoGet Control
  37. ..Enable AutoGet:/.enable #autosoundget
  38. ..Disable AutoGet:/.disable #autosoundget
  39. ..View Midi Gets: {
  40.    if (%midi.total = $null) { set %midi.total 0 }
  41.    //echo -a 3 *** Total Midi Gets: %midi.total
  42. }
  43. ..View Wav Gets: {
  44.    if (%wav.total = $null) { set %wav.total 0 }
  45.    //echo -a 3 *** Total Wav Gets: %wav.total
  46. }